package com.gxa.service.impl;

import com.gxa.mapper.LogMapper;
import com.gxa.pojo.Log;
import com.gxa.service.LogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class LogServiceImpl implements LogService {

    @Resource
    LogMapper logMapper;

    @Override
    public List<Log> findLogByPage(Integer page ,Integer limit) {
        return logMapper.findLogByPage(page,limit);
    }

    @Override
    public Integer findLogAll() {
        return logMapper.findLogAll();
    }

    @Override
    public int insertLog(Map map) {
        return logMapper.insertLog(map);
    }

    @Override
    public List<Log> selectLogByNameAndTime(Map map) {
        return logMapper.selectLogByNameAndTime(map);
    }

    @Override
    public Integer deleteLogs(List<Integer> list) {
        return logMapper.deleteLogs(list);
    }

    @Override
    public Integer findLogAllS(Map map) {
        return logMapper.findLogAllS(map);
    }
}